package cn.hj.product.domain;

import cn.hj.basic.domain.BaseDomain;
import cn.hj.pet.domain.PetDetail;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {

    private String name;

    private String resources;

    private BigDecimal saleprice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date offsaletime;//下架时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date onsaletime;//上架时间

    private Integer state = 0;

    private String costprice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createtime;

    private Long salecount;//销售数量

    private ProductDetail detail = new ProductDetail();

}
